/**
 * 
 */
package com.gs.librarian.common;

/**
 * @author sabuj.das
 *
 */
public class ApplicationException extends Exception {

	/**
	 * Generated serial version UID
	 */
	private static final long serialVersionUID = -5027980612171633161L;
	
	private String errorCode;

	/**
	 * 
	 */
	public ApplicationException() {
		
	}

	/**
	 * @param message
	 * @param cause
	 */
	public ApplicationException(String message, Throwable cause) {
		super(message, cause);
	}

	/**
	 * @param message
	 */
	public ApplicationException(String message) {
		super(message);
	}

	/**
	 * @param cause
	 */
	public ApplicationException(Throwable cause) {
		super(cause);
	}
	
	
	public ApplicationException(String code, String message) {
		super(message);
		this.errorCode = code;
	}

	/**
	 * @return the errorCode
	 */
	public String getErrorCode() {
		return errorCode;
	}

	/**
	 * @param errorCode the errorCode to set
	 */
	public void setErrorCode(String errorCode) {
		this.errorCode = errorCode;
	}
	
	
	
}
